package com.vic.mvc.prepare.annotation.meta;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/*
 * @Documented 标记生成javadoc 
 * @Inherited 标记继承关系 
 * @Retention 注解的生存期
 * @Target 标注的目标
 * @author VIC
 *
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD}) //作用到类，方法，接口上等  
@Inherited //子类会继承  
public @interface Persion {

	String name();
	
	int age() default 0;
}
